﻿using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;

namespace Workflows.Components.TextMining.Collapse
{
    /// <summary>
    /// 
    /// </summary>
    public interface ICompensater 
    {
        /// <summary>
        /// 
        /// </summary>
        List<string> CompositeFieldNames{ get; set;}

        /// <summary>
        /// 
        /// </summary>
        bool CanSwap{ get; set;}

        /// <summary>
        /// 
        /// </summary>
        double CompensateScore { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="values1"></param>
        /// <param name="values2"></param>
        /// <returns></returns>
        double Compensate(Dictionary<string, object> values1, Dictionary<string, object> values2);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="fieldScores"></param>
        /// <returns></returns>
        double Compensate(Dictionary<string, double> fieldScores);
    }
}
